package fr.cephb.joperon.core.entities;
import com.sleepycat.db.DatabaseEntry;
import com.sleepycat.db.DatabaseException;
import fr.cephb.joperon.core.entities.base.BaseMPanel;


/**
 * MPanel
 * Description: Marker panels
 */
public class MPanel
	extends BaseMPanel
	{
	static public final int CEU= 1;
	static public final int CHB= 2;
	static public final int JPT= 3;
	static public final int YRI= 4;
	static public final int ASW= 5;
	static public final int CHD= 6;
	static public final int GIH= 7;
	static public final int LWK= 8;
	static public final int MEX= 9;
	static public final int MKK= 10;
	static public final int TSI= 11;
	static public final int PGS= 12;
	
		
	/**
     *
     * Constructor
     *
     */
	public MPanel()
		{
		super();
		}


        /**
         *
         * Copy Constructor
         *
         */
		public MPanel(BaseMPanel cp)
			{
			super(cp);
			}
		
		/**
		 * constructor from a database entry
		 *
		 */
		public MPanel(DatabaseEntry entry) throws DatabaseException
			{
			super(entry);
			}
		
		
        /**
         *
         * clone
         *
         */
		public Object clone()
			{
			return new MPanel(this);
			}

		
		@Override
		public int hashCode()
			{
			return getUid();
			}
		
		
		@Override
		public boolean equals(Object obj) {
			if(this==obj) return true;
			if(obj==null || !(obj instanceof MPanel)) return false;
			return getUid()==( MPanel.class.cast(obj).getUid());
			}
		
		}

